import request from "@/utils/request1";
// 登录
export function IPPBXLogin() {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/login",
    method: "post",
    data: { name: "admin", password: "admin" },
  });
}

// 音乐库
export function getMusicList(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/getMusicList",
    method: "post",
    data,
  });
}
// 上传音乐文件
export function uploadMusic(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/UploadMusic",
    method: "post",
    data,
  });
}
// 删除音乐文件
export function delMusic(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/delMusic",
    method: "post",
    data,
  });
}
// 添加音乐到播放列表
export function addToPlay(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/addToPlay",
    method: "post",
    data,
  });
}
// 删除播放列表
export function delPlayList(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/delPlayList",
    method: "post",
    data,
  });
}
// 获取播放列表
export function getPlayList(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/getPlayList",
    method: "post",
    data,
  });
}
// 获取分机列表
export function getPhoneList(data) {
  return request({
    url: "http://1127.0.0.1:8088/IPPBX/getPhoneList",
    method: "post",
    data,
  });
}
// 创建任务，播放音乐
export function palyMusic(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/palyMusic",
    method: "post",
    data,
  });
}
// 获取任务列表
export function getTaskList(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/getTaskList",
    method: "post",
    data,
  });
}
// 删除任务
export function delTask(data) {
  return request({
    url: "http://127.0.0.1:8088/IPPBX/delTask",
    method: "post",
    data,
  });
}
